package com.srevice.impl;

import com.dao.UserDao;
import com.srevice.UserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl  implements UserService {
    UserDao userDao;
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    @Override
    public boolean login(String name, String password) {
        return userDao.login(name, password);
    }
}
